<?php
namespace app\admin\model;
use think\Model;
class AuthGroup extends Model
{
    protected $type       = [
        // 设置addtime为时间戳类型（整型）
        'addtime' => 'timestamp:Y-m-d H:i:s',
    ];
    public static function group($group_id){
    	if($group_id != 1){
            if($group_id == 2){
                $auth_group = self::where(array('group_id'=>array('in',[3,10000])))->select();
            }else if($group_id == 3){
                $auth_group = self::where(array('group_id'=>array('in',[10000])))->select();
            }
        }else{
            $auth_group = self::all();
        }
    	return $auth_group;
    }
}